package com.wl.api.dto.system;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import com.wl.api.dto.base.PaginationConst;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * type =1,国际渠道，2国内渠道
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SecurityChannelDTO extends PaginationConst implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;

	private String name;
	
	private String logoImg;
	
	private String channelDesc;
	
	private Integer costTimeFrom;
	
	private Integer costTimeTo;
	
	@NumberFormat(pattern="#.##")
	private double amountMax;
	
	@NumberFormat(pattern="#.##")
	private double amountMin;
	
	private Integer status;
	
	private Integer type;

	private String remark;
	
	private Integer fromAreaId;

	private BigDecimal floatRate;

	private Integer reachAreaId;
	List<SecurityChannelLadderPriceDTO> feeLadderList; //物流阶梯集合
	
	List<SecurityChannelAreaLadderPriceDTO> pickUpLadderList;
	
	List<SecurityChannelAreaLadderPriceDTO> deliveryLadderList;
	
	public SecurityChannelDTO buildDeliveryLadders(Integer reachAreaId ,List<SecurityChannelAreaLadderPriceDTO>  list) {
		this.deliveryLadderList = list;
		this.reachAreaId = reachAreaId;
		return this;
	}
	public SecurityChannelDTO buildPickUpLadders(Integer fromAreaId ,List<SecurityChannelAreaLadderPriceDTO>  list) {
		this.pickUpLadderList = list;
		this.fromAreaId = fromAreaId;
		return this;
	}
	public SecurityChannelDTO buildLogisticsLadders(List<SecurityChannelLadderPriceDTO> list) {
		this.feeLadderList = list;
		return this;
	}
	

	
}
